package com.briup.day05;

/**
 * @author lining
 * @date 2024/1/12 16:22
 */
public class Test11 {
    public static void main(String[] args) {
        System.err.println("a");//输出位置 随机

        System.out.println("makbookair\t"+13.3+"\t"+56900+"\t"+5);
        // printf  format(格式化)
        String format = "%s \t %f \t %d \t %d \n";
        System.out.printf(format,"makbookair",13.3,5600,5);
        System.out.printf(format,"thinkpad",20.3,4600,10);

//        System.out.println(1++);
        // 32位     000000 .......0000 0101
        System.out.println(5 >> 32); //5
        System.out.println(5 >> 33); // 5 >> (33-32)
        System.out.println(5>>34); // 5>> (34 - 32)
        System.out.println(97 == 'a');// 内存中010101
        System.out.println((4>5) ^ ('c'>'a'));//优先级  true
        System.out.println((int)(char)(byte)-1);// 65535
        System.out.println((byte)-1);
        char min = '\u0000';
        char max = '\uffff';//[0,65535]
        /*
            -1 (补码)  1111.... 1111 1111
            (byte)-1    1111 1111     (-1)???
            (char)(-1) =65535 超范围： 2个字节 16位 0000 0000...1111 1111
            最大值 65535  01111..1111
         */
        byte b = -128;
        byte b2 = (byte) -129;
        System.out.println(b2); //127 最大值
        System.out.println((byte)-130); //126

    }


}
